const path = require('path');
const webpack = require('webpack');

const isProd = process.env.NODE_ENV === 'production';

module.exports = {
	entry: './src/main.js',
	output: {
		path: path.resolve(__dirname, '../be/public'),
		// publicPath: '/',
		filename: 'build.js'
	},
	module: {
		loaders: [
			{
				test: /\.vue$/,
				loader: 'vue-loader',
				exclude: /node_modules/
			},
			{
				test: /\.js$/,
				loader: 'babel-loader',
				exclude: /node_modules/
			},
			{
				test: /\.(png|jpg|gif|svg)$/,
				loader: 'file-loader',
			}
		]
	},
	devServer: {
		historyApiFallback: true,
		host: '0.0.0.0',
		disableHostCheck: true
	},
	devtool: '#source-map'
};
